package cn.dy.sbo.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import cn.common.lib.springside.entity.AutoIdEntity;

/**
 * 盘货日志
 * @author mlv
 *
 */
@Entity
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class StockLog extends AutoIdEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private	User	worker;
	
	private Date	time;
	
	private	String	logs;//json字符串存储盘货信息

	

	public User getWorker() {
		return worker;
	}

	public void setWorker(User worker) {
		this.worker = worker;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	@Column(length=5000)
	public String getLogs() {
		return logs;
	}

	public void setLogs(String logs) {
		this.logs = logs;
	}
	
}
